#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Aug 10 11:36:42 2019

@author: frank
"""

import ccxt
bitfinex = ccxt.bitfinex()
        
'''
    'proxies': {
        'http': 'socks5://127.0.0.1:1080',
        'https': 'socks5h://127.0.0.1:1080'
    }
}
'''
symbol = 'BTC/USD'
timeframe = '1m'
limit = 300
since = bitfinex.milliseconds() - limit * 60 * 1000
params = {'partial': False}
data = bitfinex.fetch_ohlcv(symbol, timeframe, since, 12*24, params)

